<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var reg=/\d+/;
			var str="1是1，二是2，40是40，噢耶";
			//用数字分割这个字符串
			var ar=str.split(reg);
			for(var i in ar){
				document.write(ar[i]+"<br/>");
			}
		</script>
	</head>
	<body>
	</body>
</html>
